package com.bm.dao;

import org.junit.Test;

import java.util.Set;

public class CollegeDaoTeat {
    @Test
    public void setCollegeDao(){
        CollegeDao collegeDao = new CollegeDao();
        Set<String> nameSet = collegeDao.selectCollege();
        for (String name:
             nameSet) {
            System.out.println(name);
        }
        System.out.println(nameSet.size());
    }

    @Test
    public void selectMajor(){
        CollegeDao collegeDao = new CollegeDao();
        Set<String> nameSet = collegeDao.selectMajor();
        for (String name:
                nameSet) {
            System.out.println(name);
        }
        System.out.println(nameSet.size());
    }
}
